package com.wt.controller;

import com.wt.pojo.UserInfo;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("user")
public class ProviderController {

    @PostMapping
    public String Add(@RequestBody  UserInfo userInfo){
        System.out.println("提供者添加="+userInfo);
        return "ok add";
    }

    @DeleteMapping("/{id}")
    public String del(@PathVariable("id") Integer id){
        System.out.println("提供者删除："+id);
        return "ok del";
    }

    @GetMapping
    public String get(UserInfo userInfo){
        System.out.println("提供者查询："+userInfo);
        return "ok get";
    }
}
